Repository navigation
fix: replace deprecated fs.F_OK with fs.constants.F_OK [DEP0149] - #17136
vinay070403 wants to merge 1 commit into
Conversation
|
Hi @vinay070403! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
I am seeing this deprecation warning too. It would be great if this could be merged soon. |
|
Any chance this will go out? |
|
I doubt it. create-react-app is deprecated. I ended up moving to an alternative. There are alternatives like Vite, Next.js and more. Do your research and see what suits your application. |
Summary
This PR replaces usage of the deprecated
fs.F_OKconstant withfs.constants.F_OKinpackages/react-dev-utils/checkRequiredFiles.js.This resolves the Node.js DeprecationWarning:
Why
fs.F_OKis deprecated in Node.js and may be removed in future versions.fs.constants.F_OKis the recommended approach.Related Issue
Fixes #17131
Verification
checkRequiredFiles.jsyarn testlocally, all tests passed✅ Ready for review.